Alfresco Index of Web Scripts URI '/api/sites/{shortname}/memberships/{authorityname}'
Alfresco Community v3.2.0 (2039)
3 Web Scripts

Back to Web Scripts Home

Up to uri /api/sites/{shortname}/memberships

Delete Web Site Membership
DELETE /alfresco/service/api/sites/{shortname}/memberships/{authorityname}
Description:Delete membership from a web site.
'shortname' is the shortname of the web site, 'authorityname' is the full authority name for the membership.
Authentication:user
Transaction:required
Format Style:argument
Lifecycle:draft_public_api
Default Format:json
Id:org/alfresco/repository/site/membership/membership.delete
Description:classpath:alfresco/templates/webscripts/org/alfresco/repository/site/membership/membership.delete.desc.xml

Get Web Site Membership
GET /alfresco/service/api/sites/{shortname}/memberships/{authorityname}
Description:Get the membership details for a user or group
'shortname' is the shortname of the web site, 'authorityname' is the full authority name for the membership.
Returns a membership or Status.NOT_FOUND(404)
Authentication:user
Transaction:required
Format Style:argument
Lifecycle:draft_public_api
Default Format:json
Id:org/alfresco/repository/site/membership/membership.get
Description:classpath:alfresco/templates/webscripts/org/alfresco/repository/site/membership/membership.get.desc.xml

Update Web Site Membership
PUT /alfresco/service/api/sites/{shortname}/memberships/{authorityname}
Description:Update the membership role for a user or group
'shortname' is the shortname of the web site, 'authorityname' is the full authority name for the membership.
Required parameters,
role, mandatory String, the new role name for this membership.
person object, with userName property
OR group object, with fullName property
OR authority object, with fullName property
Returns: The new authority.
Authentication:user
Transaction:required
Format Style:argument
Lifecycle:draft_public_api
Default Format:json
Id:org/alfresco/repository/site/membership/membership.put
Description:classpath:alfresco/templates/webscripts/org/alfresco/repository/site/membership/membership.put.desc.xml